#include "http_server.hpp"
#include <iostream>
#include <memory>

void Usage(const char* proc)
{
    cout << "Usage:" << endl;
    cout << proc << " <ip>" << endl;
}

int main(int argc, char** argv)
{
    if(argc != 2)
    {
        Usage(argv[0]);
        return 0;
    }
    uint16_t port = stoi(argv[1]);
    unique_ptr<HttpServer> server(new HttpServer(port));
    server->Run();
}